package com.huawei.appgallery.wishwall.ui.cardkit.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.wishwall.ui.cardkit.bean.WishWallAppSelectionCardBean;
import o.cgz;
import o.ddq.d;
import o.ddu;
import o.def;

public class WishWallAppSelectionCard extends cgz {
    private TextView ˋ;
    private View ˎ;
    private TextView ˏ;
    private RadioButton ॱ;

    public WishWallAppSelectionCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        ˏ((ImageView) view.findViewById(d.ʻॱ));
        ॱ((TextView) view.findViewById(d.ˊˋ));
        this.ˏ = (TextView) view.findViewById(d.ˋˊ);
        this.ˋ = (TextView) view.findViewById(d.ˉ);
        this.ॱ = (RadioButton) view.findViewById(d.ʿ);
        this.ˎ = view.findViewById(d.ॱˊ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (ˊᐝ()) {
            this.ˎ.setVisibility(0);
        } else {
            this.ˎ.setVisibility(4);
        }
        def o_def = ((WishWallAppSelectionCardBean) cardBean).appInfo;
        if (o_def == null) {
            ddu.ˊ.ˊ("WishWallAppSelectionCard", "missing appInfo");
            return;
        }
        this.ʽॱ.setImageDrawable(o_def.ˊ());
        this.ʿ.setVisibility(0);
        this.ʿ.setText(o_def.ˏ());
        this.ˏ.setText(o_def.ॱ());
        this.ˋ.setText(o_def.ᐝ());
        this.ॱ.setChecked(o_def.ʻ());
    }
}
